Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [XThreads] Thread Link
lucasbytegenius Offline
Junior Member
**
Posts: 18
Joined: Apr 2011
Post: #1
[XThreads] Thread Link
Well, I'd like to use XThreads to create threads that link to websites and stuff, with no extras like the Link Directory tutorial has.

Basically, I'd like it to work like this plugin does.
12-10-2011 10:19 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: [XThreads] Thread Link
If what you want is exactly what that plugin gives, why not use it?

Otherwise, it's just a matter of making a thread field and editing your template to use the value of the thread field as a link.

My Blog
12-10-2011 01:10 PM
Find all posts by this user Quote this message in a reply
lucasbytegenius Offline
Junior Member
**
Posts: 18
Joined: Apr 2011
Post: #3
RE: [XThreads] Thread Link
Well the problem is that plugin is broken, so I can't use it xD.

And I'm not sure how to do that :/
12-10-2011 01:29 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: [XThreads] Thread Link
And with your detailed explanation of the issues you're having, I'm not sure how to help you :/

My Blog
(This post was last modified: 12-10-2011 02:19 PM by ZiNgA BuRgA.)
12-10-2011 02:19 PM
Find all posts by this user Quote this message in a reply
lucasbytegenius Offline
Junior Member
**
Posts: 18
Joined: Apr 2011
Post: #5
RE: [XThreads] Thread Link
Alright, basically I'd like a guide written up on how to add the ability to make threads link to something else, using XThreads. Then the guide could be added to the XThreads Example Applications list for other lazy people like me Biggrin

Or I could just take apart the link directory, find out how to remove the redirect, and make my own. But I think that guide would help people.
12-10-2011 04:02 PM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #6
RE: [XThreads] Thread Link

  1. Create a new thread field that requires a optional http url with key 'thread_link'.
  2. Add something like this to your showthread template (using template conditionals):

    HTML Code
    <if $mybb->usergroup['cancp'] != '1' then>
    <meta http-equiv="refresh" content="0; url={$threadfields['thread_link']}">
    </if>



Maybe there is a better way to do it tough...

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
12-11-2011 05:13 AM
Visit this user's website Find all posts by this user Quote this message in a reply
lucasbytegenius Offline
Junior Member
**
Posts: 18
Joined: Apr 2011
Post: #7
RE: [XThreads] Thread Link
(12-11-2011 05:13 AM)Sama34 Wrote:  
  1. Create a new thread field that requires a optional http url with key 'thread_link'.
  2. Add something like this to your showthread template (using template conditionals):

    HTML Code
    <if $mybb->usergroup['cancp'] != '1' then>
    <meta http-equiv="refresh" content="0; url={$threadfields['thread_link']}">
    </if>



Maybe there is a better way to do it tough...

It just results in the thread refreshing over and over.
12-12-2011 09:52 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #8
RE: [XThreads] Thread Link
Edit your forumdisplay_thread template (I don't know whether you need a template prefix or not). Replace the {$thread['threadlink']} with {$GLOBALS['threadfields']['thread_link']}.

Edit your thread_link custom fields. Put {$GLOBALS['threadurl']} in the Blank Replacement Value (I don't know whether you want it a required field or not).
Select some usergroups in the Viewable by Usergroups setting (exclude Administrator). And put the {$GLOBALS['threadurl']} variable in the Unviewable Value setting.

12-13-2011 01:54 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #9
RE: [XThreads] Thread Link
RateU's method sounds better, mine was just a quick way I found after I drop the plugin you mentioned.

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
12-13-2011 02:23 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #10
RE: [XThreads] Thread Link
(12-10-2011 04:02 PM)lucasbytegenius Wrote:  for other lazy people like me Biggrin

Or I could just take apart the link directory, find out how to remove the redirect, and make my own. But I think that guide would help people.
Just FYI, I don't give two sh**s about lazy people.

My Blog
12-13-2011 09:38 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: