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)

venom2124 03-28-2011 10:16 PM

Quote:

Originally Posted by your24hourstore (Post 2178279)
tested this and found the uninstall blew up, the xml must have a problem in that area.
also I couldn't get the post to close automatically. I dont want to give the whole board control to close threads , just the classifieds category

Not sure what the issue is with the uninstall since I could not duplicate it when I uninstalled the product on my board. So I'm not sure where to start with helping you with that issue.

As for closing the thread automatically, like the post above says you have to set it to that option for that feature to work. That is under the options-->Mark as Sold.

If you have screen shots of what the issue was during the uninstall I might be able to help. Also what version of the product did you have installed?

I would suggest trying to up load the current files and product file allowing for overwrite of previous files and see if that fixes the issue.

venom2124 03-30-2011 03:00 AM

Quote:

Originally Posted by Kenjiwing (Post 2177065)
Venom Just sent you a PM.. hope you will have time to check it! Thanks!

Still taking a look at coding to see if I can help with your request.

your24hourstore 03-30-2011 03:13 AM

I see you logged in . unfortunately I didn't have a good backup so had to reinstall the whole board, so not sure what mod was conflicting, it really doesnt matter as it just a test site for mods and features, reinstalled it and seems to be all good, except that i cant figure out how to get them to close after changing the prefix to sold.

your24hourstore 03-30-2011 03:22 AM

1 Attachment(s)
I set the settings to auto close in the settings options in admincp

see! :{ after i change the prefix still open to reply oh 4.1.2 is the version

I feel this is a worthwhile mod to develop has a lot of possibility,

i think i have all the settings set to auto close but just not doing it for me.
since you made an account log in and make a n ad then mark it sold :} with the user permissions i have enabled if you have time later.
added:
OK I'm sure its not working in this new version its all installed and prefix selection works manually on post and edit,

but the thread drop down control does not have the option to mark as sold, and I don't see any screens showing you giving the users permission to close a thread.

here is the thread control screen of my install, so i guess the prefix options are working but don't seem to be using any outside files I uploaded from the install zip like sold.php

PHP 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> 

this is the vb if condition in the new version


changed your show template code to match the new version and it works now


PHP Code:

  <vb:if condition="$show['soldthread']">
                              <
li><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}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="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}sold.php?{vb:raw session.sessionurl}do=markunsold&amp;t={vb:raw threadid}">{vb:rawphrase soldthread_markunsold}&hellip;</a></li>
                              </
vb:if>
                          </
vb:if> 


your24hourstore 03-30-2011 04:11 PM

Quote:

Originally Posted by your24hourstore (Post 2178998)
I set the settings to auto close in the settings options in admincp

see! :{ after i change the prefix still open to reply oh 4.1.2 is the version

I feel this is a worthwhile mod to develop has a lot of possibility,

i think i have all the settings set to auto close but just not doing it for me.
since you made an account log in and make a n ad then mark it sold :} with the user permissions i have enabled if you have time later.
added:
OK I'm sure its not working in this new version its all installed and prefix selection works manually on post and edit,

but the thread drop down control does not have the option to mark as sold, and I don't see any screens showing you giving the users permission to close a thread.

here is the thread control screen of my install, so i guess the prefix options are working but don't seem to be using any outside files I uploaded from the install zip like sold.php

PHP 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> 

this is the vb if condition in the new version


changed your show template code to match the new version and it works now


PHP Code:

  <vb:if condition="$show['soldthread']">
                              <
li><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}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="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}sold.php?{vb:raw session.sessionurl}do=markunsold&amp;t={vb:raw threadid}">{vb:rawphrase soldthread_markunsold}&hellip;</a></li>
                              </
vb:if>
                          </
vb:if> 


:up: OK its fixed with the New showthread code i posted just make a new version update and use this new code seems to work with 4.1.2 now

rated excellent and nominated :

venom2124 03-30-2011 11:21 PM

Glad you got it working, but not sure what coding you were changing. I've installed this on two seperate boards with 4.1.2 and it worked like a charm on both. I'm almost thinking you didn't make the template mod or something, but again I'm just not sure.

your24hourstore 03-31-2011 01:40 AM

yes not sure what the heck was going on but I know for sure that the edit code you have showing is not whats in version 4.1.2 :)

the code i posted here https://vborg.vbsupport.ru/showpost....8&postcount=35 has the code that is in this new version 4.1.2, its easy to see its not what you have posted at the top of this page. seems to work great though with this changed code for me. if for some reason it doesn't work for new installs im sure this code does work because that's what is in my show thread npw. so it does work

your24hourstore 03-31-2011 01:43 AM

this mod rocks by the way I'm really liking it and plan to install it for a few people now
I would like it to show the prefix in the recent thread mods for cms widget that would be super. now it doesn't show the prefix in the recent threads or recent posts

your24hourstore 03-31-2011 02:11 AM

lol this is driving me nuts im going to try your code again and see if it works.
this new code doesn't refresh the show thread at the forum level. works everywhere else probably in the php

venom2124 03-31-2011 02:13 AM

Quote:

Originally Posted by your24hourstore (Post 2179277)
lol this is driving me nuts im going to try your code again and see if it works.
this new code doesn't refresh the show thread at the forum level. works everywhere else probably in the php

If you want to give me temp admin access I can take a look at it and see if I can figure out the disconnect.


All times are GMT. The time now is 05:51 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.01450 seconds
  • Memory Usage 1,778KB
  • 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
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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