You are not logged in! If you have not registered yet then click here to join the community!

TOLRA Community Forums


Go Back   TOLRA Community Forums > TOLRA Products (PHP Scripts) > Web Directory Script > Directory Script Mods

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 23-10-2012, 02:01 AM
jasminedir jasminedir is offline
Junior Member
 
Join Date: Jul 2012
Posts: 26
Facebook and Twitter profile mod

I want to build a mod that allows people, when submitting their listing, to input, if they want, their facebook, twitter and G+ fan/profile pages for their websites.

If people completed one or more of these data, a small icon would show up after the listings description on category pages.

Any hints?
__________________
My Tolra script based directory!
Reply With Quote
Sponsored Links
  #2  
Old 27-10-2012, 05:00 AM
Paul's Avatar
Paul Paul is offline
Moderator
 
Join Date: May 2006
Location: UK
Posts: 568
Blog Entries: 3
For twitter have a look at the attached.

Unpack the zip and put the whole twitter folder in your extensions folder.
Then access yourdomain.com/extensions/twitter/twitterinst.php
Delete extensions/twitter/twitterinst.php from the server
Edit extensions/extensioninfo.php and before the ?> add:
Code:
include($extBasePath . 'twitter/init_twitter.php');
if you don't have $extBasePath in that file then just after the opening <?php add:
Code:
$extBasePath = dirname(__FILE__) . '/';
That will let people include their twitter name, their feed is then painted on the detail page of their listing e.g. http://www.worldsiteindex.com/wdird188585449

You should be able to copy that, renaming as appropriate to allow submission of facebook etc,
Attached Files
File Type: zip twitter.zip (3.8 KB, 8 views)
Reply With Quote
Reply

Bookmarks

Tags
facebook, mod, profile, twitter

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:23 AM.