vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   End-User Options - Classifieds: Mark Thread as "Sold" (https://vborg.vbsupport.ru/showthread.php?t=260699)

blazinchuck 05-16-2012 09:43 PM

just installed on 4.1.12...working great! marked it too, good job

Inferno Dragon 08-23-2012 06:13 PM

So it allow only members to mark their own started topics as sold or anyone can mark other member topic as sold? sorry but I found the description kind of confusing :S

bremereric 09-04-2012 01:50 AM

I just installed it on 4.1.3 and I got it working the first time. I am a vb code newbie so could someone tell me how to change the color of the text Sold. Thanks in advance.

CharlieDelta 09-04-2012 02:43 PM

Change the color by adding a "Rich Text Title" in the "Thread Prefixes" of the admin CP.

This is what I use;
Code:

<font color="red"><b>[SOLD]</b></font>

mustang02 09-04-2012 08:40 PM

Nevermind. Reinstalled the xml, works on 4.2.0

ScottishScoobie 09-06-2012 05:33 PM

1 Attachment(s)
Just what i have been looking for.

Marked as Installed.

Kind of stuck though.

4.2.0 PL2

i can see everything and have set all permissions up but for the life of me i cannot get it to show in the drop down.

groups are set, forums are set, code was found and then dropped in under the poll, but the poll is the last thing on my list in the thread tools.

did the following.

1. Uploaded the sold.php to my public_html folder (root of my site)
2. Uploaded the image and xml to the instructions location
3. imported
4. found code in SHOWTHREAD as per the attached txt
5. set options/permissions/prefix

went to one of my created for sale threads where i know the mod is set to work. shows as a prefix if i edit first post. but just wont show in thread tools.

sorry for the book, but i guess i need to give you everything if im going to ask for support. and upon working i will return by showing developer support.:up:

CharlieDelta 09-07-2012 01:24 AM

Are you sure that you edited the "showthread" template in all your custom styles?

Superorb 09-07-2012 04:17 AM

Is it possible to put a button or something more visible so the users don't miss the "mark as read" link in the dropdown? Something that isn't in a dropdown.

ScottishScoobie 09-07-2012 06:00 AM

Quote:

Originally Posted by CharlieDelta (Post 2363259)
Are you sure that you edited the "showthread" template in all your custom styles?

Yeah, i only have one style and the extract is from that. i will add the code to all styles even though im not using them and report back.

thanks for responding.:up:

ScottishScoobie 09-07-2012 07:50 AM

Have recoded all styles available, still nothing on the thread tasks menu????

zascok 09-07-2012 07:54 AM

Quote:

Originally Posted by ScottishScoobie (Post 2363279)
Yeah, i only have one style and the extract is from that. i will add the code to all styles even though im not using them and report back.

thanks for responding.:up:

Same here and it's getting worse.

It's giving a huge error when I try to uninstall it :(

Code:

Fatal error: Existing data passed is not an array
Called set_existing in [path]/***/plugin.php(1558) : eval()'d code on line 20
Called eval in [path]/***/plugin.php on line 1558
in [path]/includes/class_dm.php on line 265
#0 vb_error_handler(256, Existing data passed is not an array
Called set_existing in /home/w/public_html/***/plugin.php(1558) : eval()'d code on line 20
Called eval in /home/w/public_html/***/plugin.php on line 1558
, /home/w/public_html/includes/class_dm.php, 265, Array ([existing] => ,[line] =>
Called set_existing in /home/w/public_html/***/plugin.php(1558) : eval()'d code on line 20
Called eval in /home/w/public_html/***/plugin.php on line 1558
...................


How to uninstall it?

ScottishScoobie 09-07-2012 08:16 AM

i would disable rather than uninstall, ive read all pages, and people were saying uninstall meant rebuild unless you have a good backup. nice susat too.

ScottishScoobie 09-07-2012 11:05 AM

Done nothing more than wait, and now its working.

voted for MOTM

zascok 09-07-2012 05:55 PM

I think I have got it. If one deletes the prefix manually and then try to uninstall this it will cause an error. I manually recreate the prefix and it unistalled just fine. (worth adding into the desrtiption) N

Now will try to install and wait

zascok 09-07-2012 06:13 PM

And now it works! waited for two or three minutes. Was witchcraft a part of programming? ;)

Nommed in hope the next versions will have no hassle :)

Superorb 09-07-2012 08:22 PM

When I mark something as "unsold" the previous prefix isn't restored. Is there any way to add this functionality?

ScottishScoobie 10-22-2012 04:09 AM

i guess in the days of cable speed internet and SSD's we are just impatient to let systems get on and do their thing and settle down.

addamroy 02-12-2013 11:35 PM

I don't see any option to mark threads sold in the 'thread tools' menu... uploaded all files and made the template edit.

running 4.1.12

Sven Voet 02-20-2013 03:26 PM

Nice Mod. With some changes (i want a "closed" instead a "sold" as Prefix, it´s what i´m looking for a long time. But one question (perhaps for another Version):

- Is it possible, to add more than one one "Sold" as chooseable Prefix? Perhaps so the User can easyly choose a wanted Prefix in the Thread Tools.

- Is it possible to prevent the Prefix from the normal Prefix-List when a User Post a new Thread?

Sven Voet 02-21-2013 01:13 PM

I got two errors, if i wanna install the Mod:

after changing the Showthread Code, i got the following Message:

Parse error: syntax error, unexpexted T_STRING in ...../includes/adminfunctions_template.php(5432) : eval()'d code on Line 373

When i ignore the warning, i can´t read any Thread. Cause the following error occures:

Parse error: syntax error, unexpexted T_STRING in ...../includes/class_core.php(4633) : eval()'d code on line 373

Jpolola 04-06-2013 07:48 AM

This is cute! Installed and Nominated. Thank you ^_^ work witout issue vb4.2.0 PL3
https://vborg.vbsupport.ru/external/2013/04/32.jpg
https://vborg.vbsupport.ru/external/2013/04/33.jpg

muimui 04-11-2013 06:38 AM

i have a good idea.
how about Want To Sell / Want To Buy . with Icon
when user create a new thread,have 2 choice (radio button) Want To Sell / Want To buy.

mark installed

muimui 04-17-2013 04:15 AM

hi,how to disable Prefix : Sold
in create thread?

thanks

iPenguin02 07-30-2013 04:02 PM

are we able to change the solved.php to marksolved.php without issue?

Muhammad Rahman 07-30-2013 08:43 PM

Quote:

Originally Posted by muimui (Post 2416855)
hi,how to disable Prefix : Sold
in create thread?

thanks

Style manager -> style use -> New posting template -> Newthread -> find "{vb:raw prefix_options}" and add below this code :

HTML Code:

<script>
$("select option:contains('Sold')").attr("disabled","disabled");
</script>

user can keep see prefix "sold", but can`t select ...

see live on my site ..

muimui 08-31-2013 09:45 AM

uninstall this module.getting error :

Fatal error: Existing data passed is not an array
Called set_existing in [path]/adminpanel/plugin.php(1556) : eval()'d code on line 20
Called eval in [path]/adminpanel/plugin.php on line 1556
in [path]/includes/class_dm.php on line 265
#0 vb_error_handler(256, Existing data passed is not an array
Called set_existing in /var/www/vhosts/domain.com/forum/adminpanel/plugin.php(1556) : eval()'d code on line 20
Called eval in /var/www/vhosts/domain.com/forum/adminpanel/plugin.php on line 1556
, /var/www/vhosts/domain.com/forum/includes/class_dm.php, 265, Array ([existing] => ,[line] =>
Called set_existing in /var/www/vhosts/domain.com/forum/adminpanel/plugin.php(1556) : eval()'d code on line 20
Called eval in /var/www/vhosts/domain.com/forum/adminpanel/plugin.php on line 1556

Markos 01-05-2014 02:18 PM

Anyone get this working in vb4.2.2 i cant see the option in usergroupd and cant add the code to the SHOWTHREAD

blind-eddie 01-05-2014 04:08 PM

Quote:

Originally Posted by Markos (Post 2472382)
Anyone get this working in vb4.2.2 i cant see the option in usergroupd and cant add the code to the SHOWTHREAD

Yep, works fine.
Try reinstalling & why can you not add code edits to the SHOWTHREAD template?

Markos 01-05-2014 04:24 PM

I dont know it seams to be only SHOWTHREAD section i cant edit is there anywhere else i could add the code?

Markos 01-05-2014 04:36 PM

Quote:

Originally Posted by blind-eddie (Post 2472400)
Yep, works fine.
Try reinstalling & why can you not add code edits to the SHOWTHREAD template?

I just goes to 66% then stays there when saving

blind-eddie 01-05-2014 04:55 PM

For this to work properly, the SHOWTHREAD template must be edited.
Not sure why you can not edit the template....

Markos 01-05-2014 05:00 PM

Yeah me too ive tried in all my styles and disabled all add-ons and still cant.

Markos 01-05-2014 05:21 PM

Quote:

Originally Posted by blind-eddie (Post 2472413)
For this to work properly, the SHOWTHREAD template must be edited.
Not sure why you can not edit the template....

I got it mate god knows why but wouldnt save on chrome but will save on firefox :confused:

blind-eddie 01-05-2014 05:32 PM

That's good to hear. All browsers suck... each has issues and every site looks and functions different in each.

Markos 01-05-2014 06:06 PM

Yeah true.

See if i mark a post as sold and then unsold is it meant to put the For Sale tag back on as it doesn't set any tag once its marked unsold again

blind-eddie 01-05-2014 07:50 PM

There is no Un-Sold Tag, if it doesn't say Sold, its still available. lol

jjdurrant 03-30-2014 11:49 PM

Installed on 4.1.9.. thanks man!

bremereric 10-08-2015 10:08 PM

Installed it on 4.1.3 before and it worked. Not quite the same code on the showthread style on vb 4.2.3. I double checked everything. It just won't show the option to mark it sold on the drop down menu. Here is the style code.

<vb:if condition="$show['addpoll']">
<li><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}poll.php?{vb:raw session.sessionurl}do=newpoll&amp;t={vb:raw threadid}">{vb:rawphrase add_a_poll_to_this_thread}&hellip;</a></li>
</vb:if>
<vb:if condition="$show['soldthread']">
<li><a href="sold.php?{vb:raw session.sessionurl}do=marksold&amp;t={vb:raw threadid}">{vb:rawphrase soldthread_marksold}&hellip;</a></li>
<vb:else />
<vb:if condition="$show['soldthread_unsold']">
<li><a href="sold.php?{vb:raw session.sessionurl}do=markunsold&amp;t={vb:raw threadid}">{vb:rawphrase soldthread_markunsold}&hellip;</a></li>
</vb:if>
</vb:if>

bremereric 10-09-2015 10:45 PM

My bad I forgot to go into the usergroup permissions and allow it. I need the html code to turn the black sold to a red sold.

bremereric 10-10-2015 07:46 PM

In case someone else needs to the change the color of Sold in the thread prefix use this in the rich text box.

HTML Code:

<font color=red>SOLD</font>


All times are GMT. The time now is 10:56 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.01238 seconds
  • Memory Usage 1,821KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete