vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Is it possible to make a threads subject a link? (https://vborg.vbsupport.ru/showthread.php?t=111170)

|oR|Greg 03-23-2006 01:17 PM

Is it possible to make a threads subject a link?
 
Is there a way to make a thread into a link? Almost like using the same code for a moved thread link, but instead of making it go to another post on the site, make it go to either a link within the site, or an off-site link?

Almost like this

Start new thread > have a check box that says "Make this a Link" and that would have the subject of the thread the ability to use BBCode or HTML and parse it accordingly?

|oR|Greg 03-24-2006 02:35 PM

Hello? Anyone?

I've gotten tired of waiting with so I've been poking around

In the NewThread Template, I put a check box after the the title/subject, so it looks like this:

Code:


<input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" />

<input type="checkbox" name="titleurl" value="yes" id="titleurl" tabindex="1" $checked[titleurl] />Make Title a Link?

Then inside the threadbit template I put an If statement above here:

Code:


                        <if condition="$show['gotonewpost']">
                                <strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strong>
                        <else />
                                <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a>

                        </if>

The If statement I wrote was:

Code:


<if condition="$checked[titleurl]">
<strong><a href="$thread[threadtitle]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strong>
</if>

This doesn't work, in fact all it does is have the checkbox on the newthread template, that's it.

I feel like I'm close, but I'm missing a condition I think, like the if I wrote isn't a real condition, but if it were it WOULD work, or should anyway.

Any help, this could become a new feature for vB I would imagine by making ANY forum a possible links directory. In the future I would attempt to script it so it gets a different icon to indicate that it's a link, and inside the newthread template, if you tick the checkbox then it disables the body of the thread, attachments, polls, etc and forgoes any length checks on the body.

PLEASE?

b00k 04-10-2006 04:45 PM

..........


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

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01068 seconds
  • Memory Usage 1,715KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete