Question Get current rewritten url

Status
Not open for further replies.

guj

Customer
Hello,
I'm implementing DBSEO into our forum and need the full rewritten url on each page for use in an other plugin. I tried something like:
Code:
DBSEO_Url_Create::createFull(DBSEO_Url_Create::createAny())

This works fine for forums, threads and profiles, but unfortunately not for socialgroups and albums.

Is there a simple call to get the urls there too?

Cheers
Fabian
 
If you're looking to get the URL of the page you're currently on, and not looking to generate new rewritten URLs from a non-rewritten URL, you can use the DBSEO_URL constant, I believe.

If you want to create a new URL, you should really go through the regular method, e.g.
Code:
		$newUrl = DBSEO_Url_Create::create('Album_AlbumPictureFile', array(
			DBSEO::$config['_pictureid'] => intval($_GET[DBSEO::$config['_pictureid']]),
			'thumb' 							=> (strpos($_GET[DBSEO::$config['_pictureid']], 't') !== false),
			'albumid' 							=> intval($_GET['albumid'])
		));

The data you need to provide can usually be found in the /dbtech/dbseo/includes/script folder for the file you're trying to rewrite the URL for.
 
Hi Fillip H.,

thank you for your quick answer. I really didnt know that constant so far. I think it does the job for me.
 
Hello guj,

This ticket has now been closed with the status Answered.

We hope your issue or question has been addressed to your satisfaction. If not, please feel free to re-open it by clicking this link.

If you have any further issues or questions, please feel free to start a new support ticket via the button at the top of every page.

Thank you!
 
Status
Not open for further replies.

Legacy DragonByte SEO

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
7,172
Customer rating
5.00 star(s) 1 ratings
Back
Top