vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - [OzzModz] Classifieds (https://vborg.vbsupport.ru/showthread.php?t=304635)

Nelson58 12-21-2013 05:16 PM

Quote:

Originally Posted by Nelson58 (Post 2469452)
And I tried separating the .htaccess as was suggested, and the error persists.

Help!


Thanks,


Nelson




Fatal error: Existing data passed is not an array
Called set_existing in ..../includes/class_dm_pm.php on line 687
Called post_save_each in ..../includes/class_dm.php on line 917
Called save in ..../christeris/classifieds/includes/functions.php on line 69
Called sendInfoPM in ..../classifieds_usercp.php on line 910
in ..../includes/class_dm.php on line 265
#0 vb_error_handler(256, Existing data passed is not an array
Called set_existing in /home/hobbymac/public_html/includes/class_dm_pm.php on line 687
Called post_save_each in /home/hobbymac/public_html/includes/class_dm.php on line 917
Called save in /home/hobbymac/public_html/christeris/classifieds/includes/functions.php on line 69
Called sendInfoPM in /home/hobbymac/public_html/classifieds_usercp.php on line 910
, /home/hobbymac/public_html/includes/class_dm.php, 265, Array ([existing] => ,[line] =>
Called set_existing in /home/hobbymac/public_html/includes/class_dm_pm.php on line 687
Called post_save_each in /home/hobbymac/public_html/includes/class_dm.php on line 917
Called save in /home/hobbymac/public_html/christeris/classifieds/includes/functions.php on line 69
Called sendInfoPM in /home/hobbymac/public_html/classifieds_usercp.php on line 910


Ozzy found the solution and I want to share it.

What causes this error is the setting, PM From Userid in the [OzzModz] Classifieds Settings you have the userid as the default 1, when that user does not exist.

I added my admin userid to the setting, and was able to successfully delete a classified.

alfred11 12-28-2013 01:08 PM

Quote:

Originally Posted by crazyboy1661 (Post 2461428)
ozzy47, now the mod is working fine after setting up the group permissions. Big thanks for your guidance.

How to setup up of group permission? please help me

ozzy47 12-28-2013 01:13 PM

ACP --> Usergroups --> Usergroup Manager, then for each usergroup you need to set up the permissions in the OzzModz Classifieds Permissions settings

CGhostGroup 01-02-2014 10:34 AM

It looks like the "Item Extra Field"-Option doesn't work right (or I don't understand it).

I can't find a directive/template that seperates the checkbox/dropdown/radio buttons in the template. Only for LongText.

So if I wan't to use a checkbox/radio menu it only shows one line with a checkbox, but ignores the "Separate each option with a new line"

Edit:// Btw. In your Hardcoded PM-Template (ozzmodz_classifieds.php Line 695) you use hardcoded HTML instead of BB-Code

ozzy47 01-02-2014 10:41 AM

I'll check it out when I have a chance. Thanks for the report, and for marking as installed. :)

ckgb 01-04-2014 05:55 AM

Is it possible to have this block displayed on vBadvanced home page?

Is there a way to get adds displayed in the activity stream?

Also, could you please advise on how to add a SHARE button next to the facebook LIKE button?

Thank you.

ozzy47 01-04-2014 09:32 PM

Quote:

Originally Posted by ckgb (Post 2472163)
Is it possible to have this block displayed on vBadvanced home page?

No there has been no block created for that. Perhaps you can follow the steps for creating a CMS widget or a Forum Sideblock and use that code.

Quote:

Originally Posted by ckgb (Post 2472163)
Is there a way to get adds displayed in the activity stream?

Not that I know of.

Quote:

Originally Posted by ckgb (Post 2472163)
Also, could you please advise on how to add a SHARE button next to the facebook LIKE button?

You could try adding the SHARE button in the classifieds_view_item template, around the same place as the Facebook button.

ckgb 01-05-2014 12:58 AM

Thank you.

Below is my mod rewrite

Code:

DirectoryIndex portal.php index.php
ErrorDocument 404 http://www.inwasource.com/portal.php?pageid=404





RewriteEngine on

# If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory.
# RewriteBase /forum/

# If you are having problems with the rewrite from content/ to content.php, uncomment this line to turn MultiViews off.
# Options -MultiViews

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ - [NC,L]

# Forum
RewriteRule ^threads/.* showthread.php [QSA]
RewriteRule ^forums/.* forumdisplay.php [QSA]
RewriteRule ^members/.* member.php [QSA]
RewriteRule ^blogs/.* blog.php [QSA]
RewriteRule ^entries/.* entry.php [QSA]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ - [NC,L]

# MVC
RewriteRule ^(?:(.*?)(?:/|$))(.*|$)$ $1.php?r=$2 [QSA]

# Check MVC result
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*)$ - [NC,L]
RewriteRule ^(.*)$ - [R=404,L]

I added

Code:

RewriteRule ^classifieds/([^/]*)/ ./ozzmodz_classifieds.php?do=main&catid=$1 [L,NC]
RewriteRule ^sale/([^/]*)/ ./ozzmodz_classifieds.php?do=viewitem&itemid=$1 [L,NC]
RewriteRule ^wanted/([^/]*)/ ./ozzmodz_classifieds.php?do=viewitem&itemid=$1 [L,NC]
RewriteRule ^trade/([^/]*)/ ./ozzmodz_classifieds.php?do=viewitem&itemid=$1 [L,NC]
RewriteRule ^offer/([^/]*)/ ./ozzmodz_classifieds.php?do=viewitem&itemid=$1 [L,NC]
RewriteRule ^seller/([^/]*)/ ./ozzmodz_classifieds.php?do=seller&sellerid=$1 [L,NC]

VB portion works just fine. Classifieds give out 404 error. Any idea why?

ozzy47 01-05-2014 01:05 AM

Not off the top of my head no, I don't believe anyone else has come across that. Unfortunately rewrite ruses are not my forte.

nocomp 01-05-2014 07:07 AM

hi,
i am facing the same issue with .htaccess when i put the same code.
any help would be appreciate.
great mod!
best regards


All times are GMT. The time now is 04:24 PM.

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.01773 seconds
  • Memory Usage 1,751KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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