Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 link directory...can someone make this?
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #75
RE: link directory...can someone make this?
(11-23-2010 07:11 AM)Skiilz Wrote:  If the user clicks the thread name would be possible to add the thread inside it? Like just the description and the button to redirect to the site?

I think this is the "easiest" way:
  1. Rename xtld_postbit to xtld_postbit_first. Remove the entire code there. Copy paste the postbit template code to this template.
  2. Create xtld_postbit_first_classic template. Copy paste the postbit_classic template code to this new template.
  3. For both of the templates above (xtld_postbit_first and xtld_postbit_first_classic), put this code before {$post['message']} variable:

    HTML Code
    <div style="text-align: center;">
    	<a href="{$GLOBALS['threadfields']['xtldwww']}" target="_blank"><img src="http://www.iwebtool2.com/img/?r={$mybb->settings['bburl']}/&amp;domain={$GLOBALS['threadfields']['xtldwww']}" alt="{$post['subject']}" title="Go to {$post['subject']}" /></a>
    	<br />{$GLOBALS['threadfields']['xtlddesc']}
    </div>

    Modify it as your need.

  4. Remove xtld_showthread template, Redirect Delay custom thread fields, Back custom thread fields. And remove {$GLOBALS['threadfields']['xtldback']} variable and target="_blank" in xtld_forumdisplay_thread template. I think you don't need the redirection. Because when you click the thread name / thread link, you will see the showthread and postbit. User can click the URL from there. I think you don't need the edit link in forumdisplay thread too, because you can edit the thread like a normal thread. And I think you don't need the Back "link", because there is no redirection for this method.
  5. Set the Force Postbit Layout setting in Edit Forum page to Don't force layout.

You can modify your xtld_postbit_first and xtld_postbit_first_classic as your need. And maybe you can set the Show first post on every showthread page setting to Yes (in Edit Forum page) if you want the first post to be displayed in every page in the showthread.
I hope that can help.

11-24-2010 02:44 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: link directory...can someone make this? - RateU - 11-24-2010 02:44 AM

 Standard Tools
Forum Jump: