Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 link directory...can someone make this?
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #71
RE: link directory...can someone make this?
Thanks!  And yes, you may use mine as an example!  I'd be honored!  Biggrin

I'm also having a similar problem with the article Gallery...I'll make a post there.
11-23-2010 07:05 AM
Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #72
RE: link directory...can someone make this?
RateU, once the user submits the link he will redirected to the site he posted, is possible to make the user be redirected to the links directory section instead and ONLY redirects the user to the site he posted if he clicks the thread?
Also.. 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?

[Image: 468x602b.png]
(This post was last modified: 11-23-2010 07:14 AM by Skiilz.)
11-23-2010 07:11 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #73
RE: link directory...can someone make this?
(11-23-2010 07:05 AM)RocketFoot Wrote:  And yes, you may use mine as an example!

Thanks Smile

(11-23-2010 07:11 AM)Skiilz Wrote:  Also.. 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?

You need a plugin attached to this post:
http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=398&pid=38

(11-23-2010 07:11 AM)Skiilz Wrote:  Also.. 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 will think about it.

11-23-2010 07:35 AM
Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #74
RE: link directory...can someone make this?
(11-23-2010 07:35 AM)RateU Wrote:  You need a plugin attached to this post:
http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=398&pid=38
Worked like a charm.

(11-23-2010 07:35 AM)RateU Wrote:  I will think about it.
Thank you. Looking forward to it.

[Image: 468x602b.png]
11-23-2010 08:07 AM
Find all posts by this user Quote this message in a reply
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
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #76
RE: link directory...can someone make this?
Thank you RateU. I'll just edit the template to fit my needs and that's it. Thank you.

[Image: 468x602b.png]
11-24-2010 06:40 AM
Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #77
RE: link directory...can someone make this?
Is it possible to limit the description for like...50 chars in the xtld_forumdisplay_thread?

Thank you.

[Image: 468x602b.png]
11-24-2010 10:12 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #78
RE: link directory...can someone make this?
Set maximum length for the field?

My Blog
11-24-2010 10:19 AM
Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #79
RE: link directory...can someone make this?
I'm going to create one field for "Brief Description:" limited to 155 chars and another one "Site Description:" without chars limited. Then edit the templates with the new variables Smile Thank you Zing for the suggestion.

[Image: 468x602b.png]
(This post was last modified: 11-25-2010 01:03 AM by Skiilz.)
11-24-2010 10:11 PM
Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #80
RE: link directory...can someone make this?
Hey RateU, is possible to add another line to the code bellow that will show how many links are in the forums automatically?

HTML Code
<div style="text-align: center;" class="smalltext">
	Link Directory<br />
	Powered By <a href="http://mybbhacks.zingaburga.com">XThreads</a> - <a href="http://mybbhacks.zingaburga.com">MyBB Hacks</a>
        We have a total of XX links in our Link Directory.
</div>


[Image: 468x602b.png]
(This post was last modified: 12-05-2010 10:05 PM by Skiilz.)
12-05-2010 10:05 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: