Script Wap-Store

Started on the old forum in December 2012 · view the original in the archive · old links redirect here

13 replies · 1,784 views · started 13 years ago · 1 min read

6 participants
arnage Lead · 811 posts #1

Great clean coding. Russian language.

Admin panel:

  • Add / Remove categories.
  • Add / Delete / Edit items.
  • Add / Delete / Edit news.
  • Edit / Delete reviews.
  • Manage users.

PHP OOP, MySQL

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
Attachments: new_wap-shop.zip
arnage Lead · 811 posts #3

Welcome. 😉

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
daizu Newbie · 8 posts #4

Wap Shop

Do u have more simple shop for wap site?

arnage Lead · 811 posts #5

I'm not sure that i understand what you asking.

If you meant on more scripts like this one, no i don't.

If you meant on some more things/options for this script, well, it can be coded. 😉

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
daizu Newbie · 8 posts #6

I sais do u have another Wap shop, more simple 😀

spiderwebs Developer · 193 posts #7

nice share mate 🙂

E107 Security Team Leader Proudly Support AccountLab Plus Billing Software

Want your Apps to be Developed ??? mail us your requirement at info@csarlab.com

arnage Lead · 811 posts #8

Thanks mate. 🙂

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
arnage Lead · 811 posts #10

Add in function.php in class MyFunctions something like:

	public function bbcode($var) {
		$var = preg_replace(/*' Yours '*/, $var);
// ... and others...
		return $var;
	}

And where its parsing the input/output add:

$fun->bbcode($var);
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
iMpeL Newbie · 9 posts #11

Nice share. keepITup 😀

marduck Junior · 12 posts #12

bbcode wap-store

arnage wrote: Add in function.php in class MyFunctions something like:

	public function bbcode($var) {
		$var = preg_replace(/*' Yours '*/, $var);
// ... and others...
		return $var;
	}

And where its parsing the input/output add:

$fun->bbcode($var);

thank @anage this nice scripts .wink.

LavalairLavalair.com

marduck Junior · 12 posts #13

bbcode not work

arnage wrote: Add in function.php in class MyFunctions something like:

	public function bbcode($var) {
		$var = preg_replace(/*' Yours '*/, $var);
// ... and others...
		return $var;
	}

And where its parsing the input/output add:

$fun->bbcode($var);

I have made the code in the functions.php

public function bbcode($var) { $var = preg_replace("/[img=(.?)](.?)[/img]/i","<img src="\1"/>",$var);

$var=preg_replace("/[b](.?)[/b]/i","\1", $var); $var=preg_replace("/[i](.?)[/i]/i","\1", $var); $var=preg_replace("/[u](.?)[/u]/i","\1", $var); $var=preg_replace("/[big](.?)[/big]/i","\1", $var); $var=preg_replace("/[small](.*?)[/small]/i","\1", $var);

//$var = ereg_replace("http://[A-Za-z0-9./=?-_]+","<a href="\0">\0</a>", $var); $var = str_replace("rn","[br/]",$var); if(substr_count($var,"[br/]")<=60){ $var = str_replace("[br/]"," ",$var); } $var = str_replace("domain1.net","domain2.net",$var); $var = str_replace("www.domain3.net","www.domain4.net",$var); return $var; }

and I put this code $fun->bbcode($var); in catalog.php

require_once ('_incfiles/config.php');

define('PATH', ROOT.'/catalog.php');

  	echo '
  	**Name:** '.$fun->utf($row['name']).'

  	**Price:** '.$row['money'].' $

  	**Description:** '.$fun->utf($row['text']).'  be  to=>   **Description:** '.$fun->bbcode($var).'
                                              
  	Are you sure you want to purchase this product?

}

but it does not work

LavalairLavalair.com

Ghost Senior · 366 posts #14

the $var in $fun->bbcode($var) is just an example. you need to change $var to your Variable name.

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close